<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body id="pageBody">
    <h1>Welcome to our Web site!</h1>
    <script>
        // addOnLoad(initOne);
        // addOnLoad(initTwo);
        // addOnLoad(initThree);
        window.onload = function() {
            initOne();
            initTwo();
            initThree();
        }

        function addOnLoad(newFunction) {
            var oldOnload = window.onload;
            if (typeof oldOnload == "function") {
                window.onload = function() {
                    oldOnload();
                    newFunction();
                }
            } else {
                window.onload = newFunction;
            }
        }

        function initOne() {
            document.getElementById("pageBody").style.backgroundColor = "#00F";
        }

        function initTwo() {
            document.getElementById("pageBody").style.color = "#F00";
        }

        function initThree() {
            var allTags = document.getElementById("PageBoby").getElementsByTagName("*");
            for (var i = 0; i < allTags.length; i++) {
                if (allTags[i].nodeName == "H1") {
                    allTags[i].style.border = "5px green solid";
                    allTags[i].style.padding = "25px";
                    allTags[i].style.backgroundColor = "#FFF";
                }
            }
        }
    </script>
</body>

</html>